// vite.config.ts
import { defineConfig } from "file:///Users/jack/front/vite-federation/host-vite/node_modules/.pnpm/vite@3.2.11_@types+node@24.10.0/node_modules/vite/dist/node/index.js";
import vue from "file:///Users/jack/front/vite-federation/host-vite/node_modules/.pnpm/@vitejs+plugin-vue@3.2.0_vite@3.2.11_@types+node@24.10.0__vue@3.5.22_typescript@5.9.3_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import federation from "file:///Users/jack/front/vite-federation/host-vite/node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/index.mjs";
var vite_config_default = defineConfig(({ mode }) => {
  console.log({ mode });
  const remotePort = mode === "development" ? 4173 : 4173;
  return {
    plugins: [
      vue(),
      federation({
        name: "host-app",
        remotes: {
          remote_app: `http://localhost:${remotePort}/assets/remoteEntry.js`
        },
        shared: ["vue", "tdesign-vue-next"]
      })
    ]
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvamFjay9mcm9udC92aXRlLWZlZGVyYXRpb24vaG9zdC12aXRlXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvVXNlcnMvamFjay9mcm9udC92aXRlLWZlZGVyYXRpb24vaG9zdC12aXRlL3ZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9Vc2Vycy9qYWNrL2Zyb250L3ZpdGUtZmVkZXJhdGlvbi9ob3N0LXZpdGUvdml0ZS5jb25maWcudHNcIjsvKlxuICogQEF1dGhvciAgICAgIDogWmhvdVFpSnVuXG4gKiBARGF0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